package com.schoolcloud.share.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 合集协作权限管理
 * @TableName set_collaborators
 */
@TableName(value ="set_collaborators")
@Data
public class SetCollaborators implements Serializable {
    /**
     * 协作ID
     */
    @TableId(value = "collaborator_id", type = IdType.AUTO)
    private Integer collaborator_id;

    /**
     * 合集ID
     */
    @TableField(value = "set_id")
    private Integer set_id;

    /**
     * 协作者ID
     */
    @TableField(value = "user_id")
    private Integer user_id;

    /**
     * 角色
     */
    @TableField(value = "role")
    private Object role;

    /**
     * 权限配置
     */
    @TableField(value = "permissions")
    private Object permissions;

    /**
     * 添加时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updated_at;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}